package com.jungle.client.vo;

import lombok.Getter;

@Getter
public class TreeItemInfo {
    private String id;
    /**
     * 接口标识
     */
    private String apiId;
    private final String name;
    private String path;
    private String type;
    /**
     * 返回数据类型
     */
    private String schemaType;
    /**
     * 返回参数类型
     */
    private String schemaRef;
    /**
     * 请求方式
     */
    private String method;

    public TreeItemInfo(String name) {
        this.name = name;
    }

    public TreeItemInfo(String id, String apiId, String path,String name, String type, String schemaType, String schemaRef, String method) {
        this.id = id;
        this.apiId = apiId;
        this.path = path;
        this.name = name;
        this.type = type;
        this.schemaType = schemaType;
        this.schemaRef = schemaRef;
        this.method = method;
    }

    public TreeItemInfo(String apiId, String name, String schemaRef) {
        this.apiId = apiId;
        this.name = name;
        this.schemaRef = schemaRef;
    }

    @Override
    public String toString() {
        return name;
    }
}
